from flask_script import Manager
from info import create_app, db
from flask_migrate import Migrate, MigrateCommand
from flask import session, current_app
import logging
from info.models import *

app = create_app("development")
#创建管理对象
manager = Manager(app)

# 创建迁移对象
Migrate(app, db)

#添加迁移指令
manager.add_command("db",MigrateCommand)


if __name__ == '__main__':
    # app.run()
    manager.run()

